﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewAll.ascx.cs" Inherits="Team4Mock.UserControl.Service.ViewAll" %>
<%@ Register Src="~/UserControl/Service/AddService.ascx" TagName="ServiceAdd" TagPrefix="uc1" %>
<asp:Panel ID="pnView" runat="server">
<div id="Directorate" class="tab_content">
    <fieldset style="margin-left: 0px; width: 740px;">
        <legend style="height: 25px; background-color: #465c71; -webkit-border-radius: 5px 5px 0px 0px;
            color: #dde4ec;font-size:15px;">Service List</legend>
    <div style="width: 486px; float: left; height: 32px; font-size: 14px; line-height: 32px;">
        <a href="#">All</a>&nbsp;&nbsp;| <a href="#">0-9</a>&nbsp;&nbsp;| <a href="#">A-B-C-D-E</a>&nbsp;&nbsp;|
        <a href="#">F-G-H-I-J</a>&nbsp;&nbsp;| <a href="#">K-L-M-N</a>&nbsp;&nbsp;| <a href="#">
            O-P-Q-R</a>&nbsp;&nbsp;| <a href="#">S-T-U-V</a>&nbsp;&nbsp;| <a href="#">W-X-Y-Z</a>
    </div>
    <div style="float: left; height: 32px; line-height: 32px;">
        <asp:Button ID="btnCopy" runat="server" Text="Copy" CssClass="button"/>&nbsp;
        <asp:Button ID="btnCreate" runat="server" Text="Create" CssClass="button" 
            onclick="btnCreate_Click"/>&nbsp;
        <asp:CheckBox ID="CheckBox1" runat="server" Text="In-active" Style="font-size:15px;" />
    </div>
    <div style="width: 784px;">
        <asp:GridView ID="gvService" AutoGenerateColumns="False" DataKeyNames="ID" runat="server"
            Width="725px" Font-Size="15px" BackColor="White" BorderColor="#CCCCCC" AllowSorting="true"
            BorderStyle="None" BorderWidth="1px" CellPadding="3">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <input type="radio" name="rdSelect" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="ID" Visible="false">
                    <ItemTemplate>
                        <asp:Label ID="lbID" runat="server" Text='<%#Eval("ID") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Service Name">
                    <ItemTemplate>
                        <asp:HyperLink ID="OrgName" runat="server" NavigateUrl='<%#"/FormView/Service.aspx?"+"ID="+Eval("ID") %>' Text='<%#Eval("Service Name") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Description">
                    <ItemTemplate>
                        <asp:Label ID="lbHOA" runat="server" Text='<%#Eval("Description") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Service Type">
                    <ItemTemplate>
                        <asp:Label ID="lbPostcode" runat="server" Text='<%#Eval("Service Type") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Contact">
                    <ItemTemplate>
                        <asp:Label ID="lbContact" runat="server" Text='<%#Eval("Contact") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Is Active">
                    <ItemTemplate>
                        <asp:Label ID="lbActive" runat="server" Text='<%#Eval("Is Active") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            
        </asp:GridView>
    </div>
    </fieldset>
</div>
</asp:Panel>
<asp:Panel ID="pnAdd" runat="server">
    <uc1:ServiceAdd ID="AddSer" runat="server" />
</asp:Panel>